package cn.rmc.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Pagelist<T> {
    //总数
    private long total = 0;
    //当前页数据
    private List<T> data = new ArrayList<>();

    public Pagelist(long total, List<T> data) {
        this.total = total;
        this.data = data;
    }

    public Pagelist() {
    }
}
